package com.qiaoyanqing.myqiubai;

import android.app.Application;

import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by Administrator on 2016/11/27.
 */

public class BaseApplication extends Application{
    private HttpService mService;

    @Override
    public void onCreate() {
        super.onCreate();
      mService=new Retrofit.Builder()
              .baseUrl("http://m2.qiushibaike.com/")
              .addConverterFactory(GsonConverterFactory.create())
               .build()
               .create(HttpService.class);

    }

    public HttpService getService() {
        return mService;
    }
}
